import sys 
sys.path.append(".") 
from obcs import ObS3

S3Config = {
    'Endpoint': 'cos.ap-beijing.myqcloud.com',
    'Region': 'ap-beijing',
    'SecretId' : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'SecretKey': 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
bucket = "obsidian-0123456789"
obset = { 'daily_dir': '日志/','daily_attachment_dir': '附件'}
client = ObS3(S3Config, bucket ,obset)
client.info()
print(client.get('支持类文件/test.md'))
print(client.get('支持类文件/test2.md'))
print(client.today_daily())
client.append('支持类文件/test.md','+++')

# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html
# https://cloud.tencent.com/document/product/436/37421
# https://zhuanlan.zhihu.com/p/434436756